﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    public class MacKey
    {
        string mac;

        public string Mac
        {
            get { return mac; }
            set { mac = value; }
        }
        DateTime time;

        public DateTime Time
        {
            get { return time; }
            set { time = value; }
        }

        private string _key;

        public string Key
        {
            get { return _key; }
            set { _key = value; }
        }

        public MacKey(string mac)
        {
            this._key = Guid.NewGuid().ToString().Substring(0, 8);
            this.time = DateTime.Now;
            this.mac = mac;
        }
    }
}
